package org.bling.star.common.enums;

import org.bling.star.common.command.CommandType;

/**
 * @Describe: 系统请求类型
 * @Date: 2024/5/24
 * @Author: szz
 */
public enum SystemCommandType implements CommandType {
    CONNECT_PING(1, "连接心跳"),
    CONNECT_PONG(2, "连接心跳响应"),
    CONNECT_CLOSE(3, "连接关闭"),
    ;

    private final Integer code;
    private final String value;
    SystemCommandType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }
    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
